package com.ruoyi.retirement.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章发布对象 retirement_article
 * 
 * @author 曹旭
 * @date 2025-09-02
 */
public class RetirementArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章内容富文本 */
    @Excel(name = "文章内容富文本")
    private String desc;

    /** 富文本纯文字内容 */
    private String descText;

    /** 内容音频文件路径*/
    private String descUrl;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String dept;

    /** 部门名称 */
    private String deptName;

    /** 文章所属一级分类 */
    @Excel(name = "文章所属一级分类")
    private Long articleOneClass;

    /** 一级分类名称 */
    private String articleOneClassName;

    /** 文章所属二级分类 */
    @Excel(name = "文章所属二级分类")
    private Long articleTwoClass;

    /**  二级分类名称 */
    private String articleTwoClassName;


    /** 文章类型 */
    @Excel(name = "文章类型")
    private String type;

    /** 文号 */
    @Excel(name = "文号")
    private String policyCode;

    /** 文章封面图 */
    @Excel(name = "文章封面图")
    private String image;

    /** 是否置顶 1是 0否 */
    @Excel(name = "是否置顶 1是 0否")
    private String isTop;

    /** 活动地址（活动类） */
    @Excel(name = "发文地址", readConverterExp = "活=动类")
    private String location;

    /** 活动截止日期（活动类） */
    private String deadline;
    /** 活动截止日期时间戳（活动类） */
    private String deadlineStr;

    /** 发文机构（政策类） */
    @Excel(name = "发文机构", readConverterExp = "政=策类")
    private String source;

    /** 文章状态 0草稿 1审核中 2审核通过 3审核不通过 4已发布 */
    @Excel(name = "文章状态 0草稿 1审核中 2审核通过 3审核不通过 4已发布")
    private String status;

    /** 驳回原因 */
    @Excel(name = "驳回原因")
    private String reason;

    /** 发布时间 */
    @Excel(name = "发布时间")
    private String date;

    /** 是否删除 1是 0否 */
    @Excel(name = "是否删除 1是 0否")
    private String isDel;

    /** 是否截止报名 1是 0否*/
    private String endRegistration;

    /** 是否参加报名*/
    private String signupStatus;

    /** 是否收藏 */
    private Boolean isCollected;


    private Long userId;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Boolean getCollected() {
        return isCollected;
    }

    public void setCollected(Boolean collected) {
        isCollected = collected;
    }

    public String getSignupStatus() {
        return signupStatus;
    }

    public void setSignupStatus(String signupStatus) {
        this.signupStatus = signupStatus;
    }

    public String getDescText() {
        return descText;
    }

    public void setDescText(String descText) {
        this.descText = descText;
    }

    public String getDescUrl() {
        return descUrl;
    }

    public void setDescUrl(String descUrl) {
        this.descUrl = descUrl;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public String getDeadlineStr() {
        return deadlineStr;
    }

    public void setDeadlineStr(String deadlineStr) {
        this.deadlineStr = deadlineStr;
    }

    public String getEndRegistration() {
        return endRegistration;
    }

    public void setEndRegistration(String endRegistration) {
        this.endRegistration = endRegistration;
    }

    public String getArticleOneClassName() {
        return articleOneClassName;
    }

    public void setArticleOneClassName(String articleOneClassName) {
        this.articleOneClassName = articleOneClassName;
    }

    public String getArticleTwoClassName() {
        return articleTwoClassName;
    }

    public void setArticleTwoClassName(String articleTwoClassName) {
        this.articleTwoClassName = articleTwoClassName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }

    public void setDept(String dept) 
    {
        this.dept = dept;
    }

    public String getDept() 
    {
        return dept;
    }

    public void setArticleOneClass(Long articleOneClass) 
    {
        this.articleOneClass = articleOneClass;
    }

    public Long getArticleOneClass() 
    {
        return articleOneClass;
    }

    public void setArticleTwoClass(Long articleTwoClass) 
    {
        this.articleTwoClass = articleTwoClass;
    }

    public Long getArticleTwoClass() 
    {
        return articleTwoClass;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setPolicyCode(String policyCode) 
    {
        this.policyCode = policyCode;
    }

    public String getPolicyCode() 
    {
        return policyCode;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setIsTop(String isTop) 
    {
        this.isTop = isTop;
    }

    public String getIsTop() 
    {
        return isTop;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    public void setDate(String date) 
    {
        this.date = date;
    }

    public String getDate() 
    {
        return date;
    }

    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("desc", getDesc())
            .append("dept", getDept())
            .append("articleOneClass", getArticleOneClass())
            .append("articleTwoClass", getArticleTwoClass())
            .append("type", getType())
            .append("policyCode", getPolicyCode())
            .append("image", getImage())
            .append("isTop", getIsTop())
            .append("location", getLocation())
            .append("source", getSource())
            .append("status", getStatus())
            .append("reason", getReason())
            .append("date", getDate())
            .append("isDel", getIsDel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
